// +----------------------------------------------------------------------
// | BB [ BB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2024~2034 https://www.bobahappy.com.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: luowei Team <luowei@bobahappy.com>
// +----------------------------------------------------------------------

import request from '@/libs/request';

/**
 * @description 列表
 * @param {Object} param data {Object} 传值参数
 */
export function ListApi(data) {
  return request({
    url: 'schedule/list',
    method: 'get',
    params: data,
  });
}


/**
 * @description 字典列表
 * @param {Object} param data {Object} 传值参数
 */
export function ListDicApi() {
  return request({
    url: 'schedule/dics',
    method: 'get',
    params: {},
  });
}


/**
 * @description 保存
 * @param {Object} param data {Object} 传值对象
 */
export function saveApi(data) {
  return request({
    url: `schedule/save`,
    method: 'post',
    data,
  });
}

/**
 * @description 所有排班数据
 * @param {Object} param data {Object} 传值参数
 */
export function ListScheduleApi(data) {
  return request({
    url: 'schedule/schedules',
    method: 'get',
    params: data,
  });
}
/**
 * @description 列表
 * @param {Object} param data {Object} 传值参数
 */
export function GetApi(id) {
  return request({
    url: 'schedule/read/'+id,
    method: 'get',
    params: {},
  });
}
/**
 * @description 列表
 * @param {Object} param data {Object} 传值参数
 */
export function CopyApi() {
  return request({
    url: 'schedule/copy',
    method: 'get',
    params: {},
  });
}
